﻿using System;

namespace élénkPróbája.assets
{
    public class LitLazyStringSource : IStringSource
    {
        readonly Func<string> _stringProvider;

        public LitLazyStringSource(Func<string> stringProvider)
        {
            _stringProvider = stringProvider;
        }

        public string GetString()
        {
            return _stringProvider();
        }

        public string ResourceName { get { return null; } }
        public Type ResourceType { get { return null; } }
    }
}